/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tvunetworks.service;

import com.tvunetworks.model.Order;
import java.util.List;

/**
 *
 * @author michael
 */
public interface OrderManager extends GenericManager<Order, Integer> {

    /**
     * 
     * @param order
     */
    void insertOrder(Order order);

    /**
     * 
     * @param orderId
     * @return
     */
    Order getOrder(Integer orderId);

    /**
     * 
     * @param username
     * @return
     */
    List<Order> getOrderByUsername(String username);

    /**
     * 
     * @param key
     * @return
     */
    int getNextId(String key);
}
